home *** CD-ROM | disk | FTP | other *** search
/ Programming Sound Cards / Programming Sound Cards.iso / sound_46 / voc_fmt < prev   
Text File  |  1995-01-01  |  3KB  |  69 lines

  1. Creative Voice (VOC) file format
  2. --------------------------------
  3.  
  4.     HEADER (bytes 00-19)
  5.     Series of DATA BLOCKS (bytes 1A+) [Must end w/ Terminator Block]
  6.  
  7. -----------------------------------------------------------------
  8.  
  9. HEADER:
  10. =======
  11.      byte #     Description
  12.      ------     ------------------------------------------
  13.      00-12      "Creative Voice File"
  14.      13         1A (eof to abort printing of file)
  15.      14-15      Offset of first datablock in .voc file (std 1A 00
  16.                 in Intel Notation)
  17.      16-17      Version number (minor,major) (VOC-HDR puts 0A 01)
  18.      18-19      2's Comp of Ver. # + 1234h (VOC-HDR puts 29 11)
  19.  
  20. -----------------------------------------------------------------
  21.  
  22. DATA BLOCK:
  23. ===========
  24.  
  25.    Data Block:  TYPE(1-byte), SIZE(3-bytes), INFO(0+ bytes)
  26.    NOTE: Terminator Block is an exception -- it has only the TYPE byte.
  27.  
  28.       TYPE   Description     Size (3-byte int)   Info
  29.       ----   -----------     -----------------   -----------------------
  30.       00     Terminator      (NONE)              (NONE)
  31.       01     Sound data      2+length of data    *
  32.       02     Sound continue  length of data      Voice Data
  33.       03     Silence         3                   **
  34.       04     Marker          2                   Marker# (2 bytes)
  35.       05     ASCII           length of string    null terminated string
  36.       06     Repeat          2                   Count# (2 bytes)
  37.       07     End repeat      0                   (NONE)
  38.       08     Extended        4                   ***
  39.  
  40.       *Sound Info Format:       **Silence Info Format:
  41.        ---------------------      ----------------------------
  42.        00   Sample Rate           00-01  Length of silence - 1
  43.        01   Compression Type      02     Sample Rate
  44.        02+  Voice Data
  45.  
  46.     ***Extended Info Format:
  47.        ---------------------
  48.        00-01  Time Constant: Mono: 65536 - (256000000/sample_rate)
  49.                              Stereo: 65536 - (25600000/(2*sample_rate))
  50.        02     Pack
  51.        03     Mode: 0 = mono
  52.                     1 = stereo
  53.  
  54.  
  55.   Marker#           -- Driver keeps the most recent marker in a status byte
  56.   Count#            -- Number of repetitions + 1
  57.                          Count# may be 1 to FFFE for 0 - FFFD repetitions
  58.                          or FFFF for endless repetitions
  59.   Sample Rate       -- SR byte = 256-(1000000/sample_rate)
  60.   Length of silence -- in units of sampling cycle
  61.   Compression Type  -- of voice data
  62.                          8-bits    = 0
  63.                          4-bits    = 1
  64.                          2.6-bits  = 2
  65.                          2-bits    = 3
  66.                          Multi DAC = 3+(# of channels) [interesting--
  67.                                        this isn't in the developer's manual]
  68.  
  69.